import { art } from "../prefix";

const artWork = [
  // 艺术品列表
  {
    name: "artWorkList",
    method: "GET",
    url: art + "/works",
  },
  // 上传图片公共方法
  {
    name: "uploadImage",
    method: "post",
    url: art + "/upload_image",
  },
  {
    name: "getTagList",
    method: "GET",
    url: art + "/tag",
  },
  // 发布评论
  {
    name: "replyComment",
    method: "POST",
    url: art + "/works_comment"
  },
  // 获取评论列表
  {
    name: "getCommentList",
    method: "GET",
    url: art + "/works_comment"
  },
  // 删除评论
  {
    name: "delComment",
    method: "DELETE",
    url: art + "/works_comment/:data_id"
  },
  // 获取作品详情页推荐作品
  {
    name: "getRecommendWorks",
    method: "GET",
    url: art + "/works/:data_id"
  }
];

export default artWork;
